package com.yanqu.road.server.logic.activity.common.condition;

import com.yanqu.road.entity.activity.ActivityConditionInfo;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.logic.activity.common.CommonActivityData;
import com.yanqu.road.server.manger.activity.CommonActivityRankMgr;

public abstract class BaseCommonActivityRankCondition extends BaseCommonActivityCondition{

    public BaseCommonActivityRankCondition(GamePlayer player, CommonActivityData commonActivityData, ActivityConditionInfo conditionInfo) {
        super(player, commonActivityData, conditionInfo);
    }

    protected void rankChange() {
        CommonActivityRankMgr.changeRank(activityData.getActivityId(), player.getUserInfo(), getValue());
    }
}
